package erwiki.part.workflow.internal;

import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.jface.preference.StringFieldEditor;

import erwiki.api.workflow.WorkflowManager;

public class WorkflowManagerPreferencePage extends FieldEditorPreferencePage {
	private static final long serialVersionUID = 1L;

	/**
	 * Create the preference page.
	 */
	public WorkflowManagerPreferencePage() {
		super(FLAT);
	}

	/**
	 * Create contents of the preference page.
	 */
	@Override
	protected void createFieldEditors() {
		// Create the field editors
		addField(new StringFieldEditor(WorkflowManager.Prefs.SAVE_APPROVER, "Page save approver", -1,
				StringFieldEditor.VALIDATE_ON_KEY_STROKE, getFieldEditorParent()));
		addField(new StringFieldEditor(WorkflowManager.Prefs.CREATE_PROFILE_APPROVER, "User profile create approver",
				-1, StringFieldEditor.VALIDATE_ON_KEY_STROKE, getFieldEditorParent()));
	}

}
